
import request from '../request.js'

const api = {
	save: '/app/income/save',
	monthTotal: '/app/income/month/income-total',
}

/* 保存收入信息
 */
export function saveIncome(formData) {
	return request({
		url: api.save,
		method: 'POST',
		data: formData
	})
}


/* 根据用户id获取12个月内每个月的总收入
 */

export function getMonthTotalByIncome(id) {
	return request({
		url: api.monthTotal,
		method: 'GET',
		params: id
	})
}